from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter, SimpleRouter

from apps.index.views import IndexView, IndexViewSet

route = SimpleRouter()
urlpatterns = [
    url(r'^$', IndexView.as_view(), name='index'),
]
# 分类
route.register(r'categories', IndexViewSet, basename="categories")

urlpatterns += route.urls
